const { router } = require('../../koa/koa-main')
const { getAllGroups } = require('../../services/group')

router.get('/getAllGroups', async (ctx, next) => {
  const { data } = await getAllGroups(ctx.request.query)
  ctx.response.body = data
  await next()
})
